package com.samge.fandroid

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView


class MainActivity : BaseActivity() {

////    private val viewBind by viewBinding(ActivityMainBinding::inflate)
//
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
////        val bind = ActivityMainBinding.bind(layoutInflater)
////        setContentView(bind.root)
////        bind.hello.text = "111111111111111111"
//    }


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_main)
        findViewById<TextView>(R.id.hello)?.text = this.localClassName

        findViewById<Button>(R.id.btn)?.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, BActivity::class.java)
            this.startActivity(intent)
        }

    }

}